<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<jsp:directive.page import="com.anhry.app.safety.manage.system.bean.TbSysFun"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>菜单编辑</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath %>/js/menutree/dtree2.js"></script>
	<style type="text/css">
		.tree_input{height:19px;margin:0px;padding:0px;line-height:16px;vertical-align:middle;color: #16518d; background-color:#e7f3ff;border:#83a3ff solid 1px;padding-left:2px;padding-right:2px;font-size:12px;}
	</style>
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>/js/dbdialog/lhgdialog.min.js?self=false&<%=Util.DIALOG_SKIN%>"></script>
	<script type="text/javascript" src="<%=basePath %>/js/util.js"></script>
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：系统管理 &gt; 菜单管理
			</div>
		</div>
		<div id="container">
			<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
			   <tr>
			    <td valign="top">
			    	<div class="dtree">
			      		<span><a href="javascript: d.openAll();">全部展开</a> | <a href="javascript: d.closeAll();">全部收起</a></span>
			     	</div>
			     	<script type="text/javascript">
						<!--
						 d = new dTree('d','<%=basePath%>');
						
						<%
							List menuList = (List)request.getAttribute("funList");
							for(int i=0;i<menuList.size();i++){
								TbSysFun menu = (TbSysFun)menuList.get(i);				
						%>		    						
						   d.add(<%=menu.getId()%>,<%=menu.getFunParentId()%>,'<%=menu.getFunName()%>','<%=menu.getFunUrl()%>','null','<%=menu.getFunTarget()%>','','');   
						<%			
						}
						%>
						document.write(d);
						//-->
					</script>
			     </td>
			   </tr>
			  </table>
		</div>
	</div>
  </body>
  <s:if test="%{tip!=null}">
    	<script>
    		msgDialog('${tip}', 'succ.png');
    	</script>
    </s:if>
</html>
